knitr::opts_chunk$set(echo = TRUE)
example: https://cran.r-project.org/web/packages/golem/vignettes/a_start.html
example applied: https://towardsdatascience.com/production-grade-r-shiny-with-golem-prototyping-51b03f37c2a9
communication between modules: https://shiny.rstudio.com/articles/communicate-bet-modules.html
testing: https://shiny.rstudio.com/articles/integration-testing.html
define a path as links, like graph nodego links. ex: from: step_a ; to: step_b
define events that happen in each node. remember an event is a label that happens at a time and might have a value. ex: event: step_a date|datetime: 2021-01-01 value: 10
visualize path of nodes, how they are connected and some statistic on each node, ex: event: step_a|n:22; event:step_b; n:20
data load: a place where you can load the data. excel for now as its how data is arriving :/ - links data: an excel with specific sheet name to load. with format from|to - event data: an excel with specific sheet name to load. with format event|datetime|value
data explore: a place where you can see what data has been loaded - data preview: -- data table with loaded links data -- data table with loaded event data
visualization: - network visualization with specific filters
execute: usethis::use_package("shinydashboardPlus") # ui: custom presentation
execute: golem::add_fct( "helpers" ) # for business functions
execute: golem::add_utils( "helpers" ) # for utility functions ( utility = more abstract than business)
execute: golem::add_js_file("script") # just to have a js file script
execute: usethis::use_data_raw() # for having some data; and define package data estructure
create /inst/extdata: for loading the external demo data.
execute: golem::add_module(name = 'data_viz') # structure: modules
edit app_ui.r
devtools::install() pathEventDataExplorer::run_app()
cannot make that other module reads data read in module upload as it was holding everything, i moved the uploads from the module to the main component
usethis::use_pipe() # for adding the stuff devtools::document() # for refreshing desc::desc_get_deps("DESCRIPTION") # to see if apears
FIXME: may be because of namespaces and custom JS , the names or ids are not ok. input_network_click_node look at this on mod_data_viz
somewhere when loading data
changed when using complete sample file
got to review when events sheet is not completed.
sample_data_links_events_path <- system.file("extdata", "sample_data_links_events.xlsx", package = "pathEventDataExplorer") sample_data_links <- readxl::read_xlsx(sample_data_links_events_path,sheet = "links") sample_data_links <- readxl::read_xlsx(sample_data_links_events_path,sheet = "events")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.